<?php

//
// The table header
//
$display = "<center><br />
<table class=\"fborder\" width=\"95%\">
    <tr>
        <td class=\"forumheader2\">
            ".lan_admin_orders_number."
        </td>
        <td class=\"forumheader2\">
            ".lan_admin_orders_user."
        </td>
        <td class=\"forumheader2\">
            ".lan_admin_orders_gateway."
        </td>
        <td class=\"forumheader2\">
            ".lan_admin_orders_lastmod."
        </td>
        <td class=\"forumheader2\">
            ".lan_global_status."
        </td>
    </tr>";

//
// The middle of the table
//

foreach($orders as $order)
{
    $display.="<tr>
                    <td class='forumheader3'>
                        <a href='admin_manage_orders.php?a=d&p=".$order["5"]."'>".$order["5"]."</a>
                    </td>
                    <td class='forumheader3'>
                        <a href='admin_manage_orders.php?a=d&p=".$order["5"]."'>".$order["9"]."</a>
                    </td>
                        <td class='forumheader3'>
                        <a href='admin_manage_orders.php?a=d&p=".$order["5"]."'>".$order["8"]."</a>
                    </td>
                    <td class='forumheader3'>
                        <a href='admin_manage_orders.php?a=d&p=".$order["5"]."'>".$order["7"]."</a>
                    </td>
                    <td class='forumheader3'>
                        <a href='admin_manage_orders.php?a=d&p=".$order["5"]."'>".$order["6"]."</a>
                    </td>
                </tr>";
}

$display.="</table>";

$ns->tablerender("", $display);